﻿/*
 * 由SharpDevelop创建。
 * 用户： xieen
 * 日期: 2013-08-21
 * 时间: 11:28
 * 
 * don't call me, let me tell you.
 * 
 */
using System;

namespace GoF23Learning._13.Template_Method
{
	/// <summary>
	/// Description of Class1.
	/// </summary>
	public abstract class Verhical
	{
		protected abstract void Startup();
		protected abstract void Run();
		protected abstract void Turn(int degree);
		protected abstract void Stop();
		
		public void Test()
		{
			Startup();//晚绑定
			Run();
			Turn(10);
			Stop();
		}
		
	}
}
